﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AMS.Configuration
{
    public class CompoundColumnInfo : ColumnInfo
    {
        public CompoundColumnInfo()
            :base()
        {
        }

        public CompoundColumnInfo(string name)
            :base(name)
        {
        }

        private List<ColumnInfo> subColumns = new List<ColumnInfo>();
        /// <summary>
        /// 子列信息
        /// </summary>
        internal List<ColumnInfo> SubColumns
        {
            get { return subColumns; }
        }

        /// <summary>
        /// 
        /// </summary>
        public string Format { get; set; }
        /// <summary>
        /// 子列信息
        /// </summary>
        public ColumnInfo[] Columns
        {
            get { return subColumns.ToArray(); }
        }

    }
}
